<?php

namespace SinoPHP\BbdBoss\Api;

use InvalidArgumentException;
use Upfor\UpforPHP\Library\Math;

/**
 * 分控所有IP信息
 *
 * 提供给融合BOSS分控节点信息
 */
class SubControlIpList extends ApiAbstract {

    /**
     * @var \SinoPHP\BbdBoss\Model\CacheSystemRelation
     */
    protected $cacheSystemRelation;

    public function v_1_0_0() {
        $this->cacheSystemRelation = model('CacheSystemRelation');

        // 分控所有IP信息
        $subControlIpList = $this->cacheSystemRelation->getSubControlServerIpList($this->cacheSystemRelation->subControlRoleId);

        $this->success($subControlIpList);
    }

}
